package cn.itcast.babasport.service.color;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.itcast.babasport.mapper.product.ColorMapper;
import cn.itcast.babasport.pojo.product.Color;
import cn.itcast.babasport.pojo.product.ColorQuery;
@Service("colorservice")
public class ColorServiceImpl implements ColorService {

	@Resource
	private ColorMapper colorMapper;
	/**
	 * 查询所有颜色
	 */
	@Override
	public List<Color> selectColorList() {
		ColorQuery colorQuery = new ColorQuery();
		colorQuery.createCriteria().andParentIdNotEqualTo(0L);
		return colorMapper.selectByExample(colorQuery);
	}
	
	

	
	

}
